package com.hnx.admin.aurora.core.log;

import com.hnx.admin.aurora.system.domain.param.log.form.LogForm;
import com.hnx.admin.aurora.system.mapper.log.SysOperlogMapper;
import com.hnx.admin.aurora.system.service.AsyncSysOperLogService;
import lombok.RequiredArgsConstructor;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/*
创建人： 倔强的头发
创建时间：2025/6/22
功能描述: 异步写入操作日志到日志表

*/
@Service
@RequiredArgsConstructor
public class AsyncSysOperLogServiceImpl implements AsyncSysOperLogService {
    private final SysOperlogMapper sysOperlogMapper;
    @Override
    @Async("operLogExecutor")
    public void insertOperlog(LogForm logForm) {
        sysOperlogMapper.insertOperlog(logForm);
    }
}
